<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/3/11
  Time: 9:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>管理员信息添加</title>
    <!-- Bootstrap core CSS -->
    <link href="${basePath}static/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Optional Bootstrap Theme -->
    <link href="data:text/css;charset=utf-8," data-href="${basePath}static/bootstrap-3.3.7-dist/css/bootstrap-theme.min.css" rel="stylesheet" id="bs-theme-stylesheet">
    <!--jQuery需要在所有js的最前面引入-->
    <script type="text/javascript" src="${basePath}static/jquery-1.12.4/jquery-1.12.4.min.js" ></script>
    <%--<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>--%>
    <script type="text/javascript" src="${basePath}static/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
</head>
<body>
<form class="form-horizontal" action="${basePath}addAdminInfo" method="post">
    <div class="form-group">
        <input type="hidden" name="adminid" value="${modifyAdminB.adminid}">
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">姓名</label>
        <div class="col-sm-3">
            <input type="text" class="form-control" name="adminname" id="adminname" value="${modifyAdminB.adminname}" >
        </div>

        <label class="col-sm-2 control-label">密码</label>
        <div class="col-sm-3">
            <input type="password" class="form-control" name="adminpsw" id="adminpsw" value="${modifyAdminB.adminpsw}" >
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">年龄</label>
        <div class="col-sm-3">
            <input type="text" class="form-control" name="adminage" id="adminage" value="${modifyAdminB.adminage}">
        </div>

        <label class="col-sm-2 control-label">电话</label>
        <div class="col-sm-3">
            <input type="text" class="form-control" name="admintel" id="admintel" value="${modifyAdminB.admintel}">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">性别</label>
        <div class="col-sm-3">
            <label class="radio-inline">
                <input type="radio" name="adminsex" id="adminsex1"
                <c:if test="${modifyAdminB.adminsex == '女'}">
                       checked="checked"
                </c:if>
                       value="女"> 女
            </label>
            <label class="radio-inline">
                <input type="radio" name="adminsex" id="adminsex2"
                <c:if test="${modifyAdminB.adminsex == '男'}">
                       checked="checked"
                </c:if>
                       value="男"> 男
            </label>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-4 col-sm-2">
            <button type="submit" class="btn btn-default">保存</button>
        </div>
        <div class=" col-sm-2">
            <button type="submit" class="btn btn-default">取消</button>
        </div>
    </div>
</form>
</body>
</html>

